package cl.innovision.vo;

import cl.innovision.vo.Parameter;
import java.io.Serializable;
import java.util.ArrayList;

public class Procedure implements Serializable {

    private static final long serialVersionUID = -827746825479151555L;
    private String catalog = null;
    private String schema = null;
    private String subSystem = null;
    private String name = null;
    private boolean generable=true;
    private InParameters inParam = new InParameters();
    private OutParameters outParam = new OutParameters();

    public Procedure(String catalog, String schema, String name) {
        super();
        this.catalog = catalog;
        this.schema = schema;
        this.name = name;
    }

    public void setCatalog(String catalog) {
        this.catalog = catalog;
    }

    public void setSchema(String schema) {
        this.schema = schema;
    }

    public void setName(String name) {
        this.name = name;
    }

    public void setInParam(InParameters inParam) {
        this.inParam = inParam;
    }

    public void setOutParam(OutParameters outParam) {
        this.outParam = outParam;
    }

    public String getCatalog() {
        return catalog;
    }

    public String getSchema() {
        return schema;
    }

    public String getName() {
        return name;
    }

    public InParameters getInParam() {
        return inParam;
    }

    public OutParameters getOutParam() {
        return outParam;
    }

    public String getSubSystem() {
        return subSystem;
    }

    public void setSubSystem(String subSystem) {
        this.subSystem = subSystem;
    }
    
    @Override
    public String toString() {
        StringBuffer sb = new StringBuffer("stored procedure name=" + name);
        sb.append("\nstored procedure catalog=" + catalog);
        sb.append("\nstored procedure schema=" + schema);
        return sb.toString();
    }

    public boolean isGenerable() {
        return generable;
    }

    public void setGenerable(boolean generable) {
        this.generable = generable;
    }
}
